const rspack = require("@rspack/core");

module.exports = {
    context: __dirname,
    entry: './src/index.js',
    devServer: {
        open: true,
    },
    devtool: false,
    output: {
        clean: true,
    },
    plugins: [
        new rspack.HtmlRspackPlugin({
            template: "./index.html"
        }),
        new rspack.CopyRspackPlugin({
            patterns: [
                {
                    from: 'public',
                },
            ],
        }),
    ]
};